// src/api/MaintenanceRecord/jueyz.js
import request from '@/utils/request';

export function selectAll() {
  return request({
    url: `/MaintenanceRecord/jueyz/selectAll`,
    method: 'get'
  });
}

export function addJueyz(data) {
  return request({
    url: `/MaintenanceRecord/jueyz/add`,
    method: 'post',
    data: data
  });
}

export function updateJueyz(jyzid, data) {
  return request({
    url: `/MaintenanceRecord/jueyz/update/${jyzid}`,
    method: 'put',
    data: data
  });
}

// 删除（逻辑删除）
export function deleteJueyz(jyzid) {
  return request({
    url: `/MaintenanceRecord/jueyz/delete/${jyzid}`,
    method: 'delete'
  });
}

export function downloadJueyz() {
  return request({
    url: `/MaintenanceRecord/jueyz/download`,
    method: 'GET',
    responseType: 'blob'
  });
}